Skip to content

feat: add Zephyr RTOS .gitignore template#4852

Open
srpatcha wants to merge 4 commits intogithub:mainfrom
srpatcha:feat/add-zephyr-rtos-gitignore
Open

feat: add Zephyr RTOS .gitignore template#4852
srpatcha wants to merge 4 commits intogithub:mainfrom
srpatcha:feat/add-zephyr-rtos-gitignore

Conversation

@srpatcha
Copy link
Copy Markdown

Automated contribution by @srpatcha.

Changes

feat: add Zephyr RTOS .gitignore template

Signed-off with GPG.

Add gitignore template for Zephyr RTOS projects covering:
- Build artifacts and twister output
- Generated config/devicetree files
- West workspace metadata
- Python virtual environments
@srpatcha srpatcha requested a review from a team as a code owner April 25, 2026 02:16
Add a comprehensive template validation tool that checks for:
- Valid glob pattern syntax
- Duplicate pattern detection
- Conflicting include/exclude rules
- Coverage analysis with suggestions
- CLI interface with argparse
- Detailed reporting (errors, warnings, suggestions)
- Support for processing all templates in the repo

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Trailing whitespace in .gitignore patterns can cause unexpected
behavior. This script detects and removes trailing whitespace
from template files with dry-run support.

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Comprehensive test suite covering glob validation, trailing
whitespace detection, duplicate and conflict detection,
coverage analysis, and report formatting.

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant